%data = ('John Paul' => 45, 'Lisa' => 30, 'Kumar' => 40);

$name = 'Lisa';

if(exists($data{$name})){
   print "$name is $data{'Lisa'} years old\n";
}
else{
   print "I don't know age of $name\n";
}